/**
 * Created by xuchaosheng on 16/5/22.
 */
/*
services.filter("isHigh",function(){
    return function(input,high){
//        hight 0 1 -1
        console.log("input:"+input[0]);
        console.log(" high:"+high);
        var val;


        if(high=="违规"){
            for(var i in input){
                console.log(i);
                if(input[i]!=null && input[i].price!=null){
                    console.log(i+" - "+input[i].price);
                    if((input[i].price-input[i].stangardPrice)!=0){
                        continue;
                    }else{
                        input=input.splice(i,1);
                    }
                }


            }

        }else if(high=="违规中的高价"){
            for(var i in input){
                console.log(i);
                if(input[i]!=null && input[i].price!=null) {
                    console.log(i + " - " + input[i].price);
                    if ((input[i].price - input[i].stangardPrice) > 0) {
                        continue;
                    } else {
                        input = input.splice(i, 1);
                    }
                }
            }

        }else if(high=="违规中的低价"){
            for(var i in input){
                console.log(i);
                if(input[i]!=null && input[i].price!=null) {
                    console.log(i + " - " + input[i].price);
                    if ((input[i].price - input[i].stangardPrice) < 0) {
                        continue;
                    } else {
                        input = input.splice(i, 1);
                    }
                }
            }
        }
        return input;

    }
});*/
